.class public Lcom/glympse/platform/Reflection$_Activity;
.super Ljava/lang/Object;
.source "Reflection.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/platform/Reflection;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "_Activity"
.end annotation


# static fields
.field private static ms_fLoaded:Z

.field private static ms_oMethod_getActionBar:Ljava/lang/reflect/Method;

.field private static ms_oMethod_invalidateOptionsMenu:Ljava/lang/reflect/Method;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 134
    const/4 v0, 0x0

    sput-boolean v0, Lcom/glympse/platform/Reflection$_Activity;->ms_fLoaded:Z

    .line 135
    sput-object v1, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_getActionBar:Ljava/lang/reflect/Method;

    .line 136
    sput-object v1, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_invalidateOptionsMenu:Ljava/lang/reflect/Method;

    .line 132
    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 132
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static IsActionBarVisible(Landroid/app/Activity;)Z
    .locals 1
    .parameter "oActivity"

    .prologue
    .line 209
    invoke-static {p0}, Lcom/glympse/platform/Reflection$_Activity;->getActionBar(Landroid/app/Activity;)Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/platform/Reflection$_ActionBar;->access$0(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method private static Load()V
    .locals 3

    .prologue
    .line 141
    sget-boolean v0, Lcom/glympse/platform/Reflection$_Activity;->ms_fLoaded:Z

    if-nez v0, :cond_0

    .line 143
    const/4 v0, 0x1

    sput-boolean v0, Lcom/glympse/platform/Reflection$_Activity;->ms_fLoaded:Z

    .line 147
    :try_start_0
    const-class v0, Landroid/app/Activity;

    const-string v1, "getActionBar"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    sput-object v0, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_getActionBar:Ljava/lang/reflect/Method;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 155
    :goto_0
    :try_start_1
    const-class v0, Landroid/app/Activity;

    const-string v1, "invalidateOptionsMenu"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    sput-object v0, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_invalidateOptionsMenu:Ljava/lang/reflect/Method;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 161
    :cond_0
    :goto_1
    return-void

    .line 157
    :catch_0
    move-exception v0

    goto :goto_1

    .line 149
    :catch_1
    move-exception v0

    goto :goto_0
.end method

.method public static getActionBar(Landroid/app/Activity;)Ljava/lang/Object;
    .locals 4
    .parameter "oActivity"

    .prologue
    const/4 v3, 0x0

    .line 166
    if-eqz p0, :cond_0

    .line 168
    invoke-static {}, Lcom/glympse/platform/Reflection$_Activity;->Load()V

    .line 170
    sget-object v1, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_getActionBar:Ljava/lang/reflect/Method;

    if-eqz v1, :cond_0

    .line 174
    :try_start_0
    sget-object v1, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_getActionBar:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    invoke-virtual {v1, p0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    .line 182
    :goto_0
    return-object v1

    .line 176
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 178
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    .end local v0           #e:Ljava/lang/Exception;
    :cond_0
    move-object v1, v3

    .line 182
    goto :goto_0
.end method

.method public static invalidateOptionsMenu(Landroid/app/Activity;)V
    .locals 3
    .parameter "oActivity"

    .prologue
    .line 188
    if-eqz p0, :cond_0

    .line 190
    invoke-static {}, Lcom/glympse/platform/Reflection$_Activity;->Load()V

    .line 192
    sget-object v1, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_invalidateOptionsMenu:Ljava/lang/reflect/Method;

    if-eqz v1, :cond_0

    .line 196
    :try_start_0
    sget-object v1, Lcom/glympse/platform/Reflection$_Activity;->ms_oMethod_invalidateOptionsMenu:Ljava/lang/reflect/Method;

    const/4 v2, 0x0

    invoke-virtual {v1, p0, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 204
    :cond_0
    :goto_0
    return-void

    .line 198
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 200
    .local v0, e:Ljava/lang/Exception;
    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/Throwable;)V

    goto :goto_0
.end method
